package com.shycloud.mido.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.common.api.entity.SysUserRoleCommon;
import com.shycloud.mido.member.api.entity.SmMemberTeacherApprovalNew;
import com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 教师认证模块 mapper
 *
 * @author nianhua.jiang
 * @date 2020/5/21 11:12
 */
public interface SmMemberTeacherApprovalNewMapper extends BaseMapper<SmMemberTeacherApprovalNew> {

	/**
	 * 分页查询教师认证列表
	 *
	 * @param page
	 * @param name
	 * @param status
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO>
	 * @author nianhua.jiang
	 * @date 2020/5/20 14:19
	 */
	IPage<SmMemberTeacherApprovalNewVO> getTeacherApprovalPage(@Param("page") Page page, @Param("name") String name, @Param("status") String status, @Param("optId") String optId);

	/**
	 * 通过ID获取信息
	 *
	 * @param id
	 * @return com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO
	 * @author nianhua.jiang
	 * @date 2020/5/20 14:57
	 */
	SmMemberTeacherApprovalNewVO getTeacherDetail(@Param("id") Integer id);

	/**
	 * 搜索会员信息
	 *
	 * @param sysUserRole
	 * @return java.util.List<com.shycloud.mido.common.api.entity.SysUserRoleCommon>
	 * @author nianhua.jiang
	 * @date 2020/5/21 17:46
	 */
	List<SysUserRoleCommon> selectUserRole(@Param("query") SysUserRoleCommon sysUserRole);

	/**
	 * 获取教师的单条信息
	 *
	 * @param memberId
	 * @return com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO
	 * @author nianhua.jiang
	 * @date 2020/6/20 15:21
	 */
	SmMemberTeacherApprovalNewVO getTeacherDetailApp(@Param("memberId") String memberId);
}